package com.beiben.ability.people.domain;

import com.beiben.system.user.domain.BeiBenUser;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 考试详情对象 ability_exam_details
 *
 * @author dulei
 * @date 2020-08-26
 */
public class Details extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long detailsId;

    /** 考试记录编号 */
    @Excel(name = "考试记录编号")
    private Long recordId;

    /** 科室编号 */
    @Excel(name = "科室编号")
    private Long deptId;

    /** 科室名称 */
    @Excel(name = "科室名称")
    private String deptName;

    /** 人员编号 */
    @Excel(name = "人员编号")
    private Long userId;

    /** 人员名称 */
    @Excel(name = "人员名称")
    private String userName;

    /** 分数 */
    @Excel(name = "分数")
    private Double score;

    /** 评级 */
    @Excel(name = "评级")
    private String rating;

    /** 用户 */
    private BeiBenUser user;

    public void setDetailsId(Long detailsId)
    {
        this.detailsId = detailsId;
    }

    public Long getDetailsId()
    {
        return detailsId;
    }
    public void setRecordId(Long recordId)
    {
        this.recordId = recordId;
    }

    public Long getRecordId()
    {
        return recordId;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setScore(Double score)
    {
        this.score = score;
    }

    public Double getScore()
    {
        return score;
    }
    public void setRating(String rating)
    {
        this.rating = rating;
    }

    public String getRating()
    {
        return rating;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("detailsId", getDetailsId())
                .append("recordId", getRecordId())
                .append("deptId", getDeptId())
                .append("deptName", getDeptName())
                .append("userId", getUserId())
                .append("userName", getUserName())
                .append("score", getScore())
                .append("rating", getRating())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }

    public BeiBenUser getUser() {
        return user;
    }

    public void setUser(BeiBenUser user) {
        this.user = user;
    }
}